package sdk.pay.constant;

public final class PayConstant {
    /**
     * 1 When the SDK access token, use the version number ext_sdkversion parameters are sent to use API gateway.
     * 2 Order to increase the SDK version field, convenient order version number query
     * 3 Version number rules for android and IOS before two simultaneous use of version, identify common function upgrade, such as 1.2 1.3 identifies common perfect function
     * 4 Third version, by its own small version, the competent development to grasp as 1.2.100 said the 1.2 one hundredth upgrade
     * 5 The version number of the fourth marking system, android with 1, apple in 2, such as 1.2.100.1 said android version 1.2 100th upgrade 1.2.100.2 said apple's 100th upgrade version 1.2
     * 1 SDK在获取token时,将版本号用ext_sdkversion参数发送至在用API网关.
     * 2 订单上增加SDK版本字段,方便订单版本号查询
     * 3 版本号规则前两位为安卓和IOS共同同步使用的版本,标识共同功能升级,比如1.2 1.3 标识共同完善的功能
     * 4 版本号第三位,由各自的小版本,由开发主管自行掌握  如1.2.100 表示1.2版本的第一百个小升级
     * 5 版本号的第4位标识系统,安卓用1,苹果用2,如1.2.100.1表示安卓的1.2版本的第100个升级 1.2.100.2 表示苹果的1.2版本的第100个升级
     * add prefix SDK3.0 ditinguish from SDK2.0
     */

    public static final String VERSION_CODE = "3.5.0.1";

    public static final String PAY_TIPS_PREFIX = "为了保障您支付安全及顺利支付，请务必开启【";
    public static final String PAY_TIPS_SUFFIX = "】无障碍权限!";

    public static final String PAY_EXCEPTION = "can't support action is 4 exception";

    public static final int TOAST_SHOW_TIME = 6 * 1000;
    /**
     * version tag
     * search this tag to get sdk version
     */
    private static final String VERSION_TAG = "version code = ";

    public static final String VERSION_LOG = VERSION_TAG + VERSION_CODE;
    /*-okHttp time out-*/
    public final static long TIME_OUT = 10L;

    public static final String ACTION_ACCESSIBILITYSERVICE = "com.pay.sdk.ACCESSIBILITYSERVICE";

    /*-internet interface-*/
    protected static final String TYPE_PARAM = "/services/getServerPayList";
    protected static final String ORDER_PARAM = "/services/getOrderBase/getSdkOrderZFState";
    protected static final String GET_SERVICES_PARAM = "/services/getServerApiList";
    protected static final String DO_UPLOAD_PARAM = "/sdk/UploadTheLog";

    /*-default api url-*/
    public static final String DEFAULT_API_URL_JFT;
    public static final String DEFAULT_API_URL_CFT;
    public static final String DEFAULT_API_URL_CS;
    public static final String DEFAULT_API_URL_CFTCS;
    public static final String DEFAULT_API_URL_YFT;
    public static final String DEFAULT_API_URL_JFT_ZL;
    public static final String DEFAULT_API_URL_WSF;
    public static final String DEFAULT_API_URL_JFT_ZL_CS;

    /*-default order url-*/
    public static final String DEFAULT_PAY_URL_JFT;
    public static final String DEFAULT_PAY_URL_CFT;
    public static final String DEFAULT_PAY_URL_CS;
    public static final String DEFAULT_PAY_URL_CFTCS;
    public static final String DEFAULT_PAY_URL_YFT;
    public static final String DEFAULT_PAY_URL_JFT_ZL;
    public static final String DEFAULT_PAY_URL_WSF;
    public static final String DEFAULT_PAY_URL_JFT_ZL_CS;

    /*-main api-*/
    public static final String GET_SERVICES_JFT;
    public static final String GET_SERVICES_CFT;
    public static final String GET_SERVICES_CS;
    public static final String GET_SERVICES_CFTCS;
    public static final String GET_SERVICES_YFT;
    public static final String GET_SERVICES_JFT_ZL;
    public static final String GET_SERVICES_WSF;
    public static final String GET_SERVICES_JFT_ZL_CS;

//    public static final String UPLOAD_LOG_API = "http://xwhzpp666.tpddns.cn:5982/sdk/UploadTheLog";

    /*-sharepreference key-*/
    public static final String SHAREPERFERENCE_NAME;
    public static final String SHAREPERFERENCE_MSG_KEY;
    public static final String SHAREPERFERENCE_SERVCERS_SUM_KEY;
    public static final String SHAREPERFERENCE_SERVCERS_CURRENT_KEY;
    public static final String SHAREPERFERENCE_ORDERSERVERS_SUM_KEY;
    public static final String SHAREPERFERENCE_ORDERSERVERS_CURRENT_KEY;

    private static native String mainGetServicesJftFromJNI();

    private static native String mainGetServicesCftFromJNI();

    private static native String mainGetServicesCftcsFromJNI();

    private static native String mainGetServicesCsFromJNI();

    private static native String mainGetServicesYftFromJNI();

    private static native String mainGetServicesJftzlFromJNI();

    private static native String mainGetServicesJftzlcsFromJNI();

    private static native String mainGetServicesWsfFromJNI();

    private static native String defaultPayUrlJftFromJNI();

    private static native String defaultPayUrlCftFromJNI();

    private static native String defaultPayUrlCsFromJNI();

    private static native String defaultPayUrlYftFromJNI();

    private static native String defaultPayUrlJftzlFromJNI();

    private static native String defaultPayUrlJftzlcsFromJNI();

    private static native String defaultPayUrlWsfFromJNI();

    private static native String defaultApiUrlJftFromJNI();

    private static native String defaultApiUrlCftFromJNI();

    private static native String defaultApiUrlCsFromJNI();

    private static native String defaultApiUrlYftFromJNI();

    private static native String defaultPayUrlCftcsFromJNI();

    private static native String defaultApiUrlCftcsFromJNI();

    private static native String defaultApiUrlJftzlFromJNI();

    private static native String defaultApiUrlJftzlcsFromJNI();

    private static native String defaultApiUrlWsfFromJNI();

    private static native String shareperferenceNameFromJNI();

    private static native String shareperferenceMsgKeyFromJNI();

    private static native String shareperferenceServcersSumKeyFromJNI();

    private static native String shareperferenceServcersCurrentKeyFromJNI();

    private static native String shareperferenceOrderserversSumKeyFromJNI();

    private static native String shareperferenceOrderserversCurrentKeyFromJNI();


    static {
        GET_SERVICES_JFT = mainGetServicesJftFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_CFT = mainGetServicesCftFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_CS = mainGetServicesCsFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_CFTCS = mainGetServicesCftcsFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_YFT = mainGetServicesYftFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_JFT_ZL = mainGetServicesJftzlFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_WSF = mainGetServicesWsfFromJNI() + GET_SERVICES_PARAM;
        GET_SERVICES_JFT_ZL_CS = mainGetServicesJftzlcsFromJNI() + GET_SERVICES_PARAM;

        DEFAULT_PAY_URL_JFT = defaultPayUrlJftFromJNI();
        DEFAULT_PAY_URL_CFT = defaultPayUrlCftFromJNI();
        DEFAULT_PAY_URL_CS = defaultPayUrlCsFromJNI();
        DEFAULT_PAY_URL_CFTCS = defaultPayUrlCftcsFromJNI();
        DEFAULT_PAY_URL_YFT = defaultPayUrlYftFromJNI();
        DEFAULT_PAY_URL_JFT_ZL = defaultPayUrlJftzlFromJNI();
        DEFAULT_PAY_URL_WSF = defaultPayUrlWsfFromJNI();
        DEFAULT_PAY_URL_JFT_ZL_CS = defaultPayUrlJftzlcsFromJNI();

        DEFAULT_API_URL_JFT = defaultApiUrlJftFromJNI();
        DEFAULT_API_URL_CFT = defaultApiUrlCftFromJNI();
        DEFAULT_API_URL_CS = defaultApiUrlCsFromJNI();
        DEFAULT_API_URL_CFTCS = defaultApiUrlCftcsFromJNI();
        DEFAULT_API_URL_YFT = defaultApiUrlYftFromJNI();
        DEFAULT_API_URL_JFT_ZL = defaultApiUrlJftzlFromJNI();
        DEFAULT_API_URL_WSF = defaultApiUrlWsfFromJNI();
        DEFAULT_API_URL_JFT_ZL_CS = defaultApiUrlJftzlcsFromJNI();

        SHAREPERFERENCE_NAME = shareperferenceNameFromJNI();
        SHAREPERFERENCE_MSG_KEY = shareperferenceMsgKeyFromJNI();
        SHAREPERFERENCE_SERVCERS_SUM_KEY = shareperferenceServcersSumKeyFromJNI();
        SHAREPERFERENCE_SERVCERS_CURRENT_KEY = shareperferenceServcersCurrentKeyFromJNI();
        SHAREPERFERENCE_ORDERSERVERS_SUM_KEY = shareperferenceOrderserversSumKeyFromJNI();
        SHAREPERFERENCE_ORDERSERVERS_CURRENT_KEY = shareperferenceOrderserversCurrentKeyFromJNI();
    }

}